package in.developersguide.oops.staticDemo;

/**
 * We say static members are not inherited but how this work
 * @author BFM
 *
 */
public class StaticInInhertiance {
  public static void staticFunction()
  {
	  System.out.println("BaseClass Static Method");
  }
  
  public void nonStaticFunction()
  {
	  System.out.println("BaseClass Non-Static Method");
  }
  
  public static void main(String[] args) {
	DeriveClass deriveClass = new DeriveClass();
	deriveClass.staticFunction();
 }
}

class DeriveClass extends StaticInInhertiance{
	public static void staticFunction()
	{
		System.out.println("Static in Derive Class");
	}
}